package com.example.flowermall.controller;

import com.example.flowermall.entity.Result;
import com.example.flowermall.entity.Tag;
import com.example.flowermall.service.ITagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaoman
 * @since 2023-08-23
 */
@RestController
@RequestMapping("/tag")
public class TagController {
    @Autowired
    ITagService tagService;
    @GetMapping("/tagList")
    public Result tagList(){
        List<Tag> list = tagService.getList();
        return Result.success(list);
    }
}
